package essentials;

public class Model {

    private String newInput;
    private String fullInput;
    
    private Double gewicht; //Gewicht in kg
    private Double groesse; //Körpergröße in m

    private Double bmi;

    public Double getBmi() {
        return bmi;
    }

    public void setBmi(Double bmi) {
        this.bmi = bmi;
    }
    
    public Double getGewicht() {
        return gewicht;
    }

    public void setGewicht(Double gewicht) {
        this.gewicht = gewicht;
    }

    public Double getGroesse() {
        return groesse;
    }

    public void setGroesse(Double groesse) {
        this.groesse = groesse;
    }

    public static Model createInitialModel() {
        Model model = new Model();
        model.initModel();
        return model;
    }

    public void initModel() {
        this.newInput = "initialText";
        
        this.gewicht = new Double(100d);
        this.groesse = new Double(2d);
        this.bmi = new Double(25d);
    }

    public Model() {
    }

    public String getNewInput() {
        return newInput;
    }

    public void setNewInput(String newInput) {
        this.newInput = newInput;
    }

    public String getFullInput() {
        return fullInput;
    }

    public void setFullInput(String fullInput) {
        this.fullInput = fullInput;
    }
}
